package com.ybwh.springboot2.controller;


import com.ybwh.springboot2.common.RespData;
import com.ybwh.springboot2.handler.api.ApiExample;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static org.springframework.web.bind.annotation.RequestMethod.GET;


@Api(tags="Handler演示")
@RestController
@RequestMapping("/")
public class ApiExampleController {
    @Autowired
    private ApiExample example;

    @ApiOperation(value = "查询handler注入",notes = "")
    @RequestMapping(value = "/checkHandler", method = GET)
    public RespData<Object> checkHandler() {

        return RespData.successResp("example 注入："+(null != example));
    }

}
